;
; Events text for the Lost Legions ToT Scenario
; by Cyrion and friends
; Copyright(c) 1999, MicroProse Studios Inc.
; 
; Gauls
; Nature
; Tools
; Scythians
; Romans
; Germans
; Renegades

@BEGINEVENTS
@INITFLAG

@IF
NOSCHISM
DEFENDER=ANYBODY 
@THEN
@ENDIF

;**** NEGOCIATION *******************************

@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
@ENDIF

;************* END NEGOCIATION *************************************************

;**** WAR *******************************
@IF
TURN
turn=-1
@THEN
MODIFYREPUTATION
who=Gauls
betray=8
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=Romans
whom=Gauls
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=Scythians
whom=Gauls
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=Germans
whom=Gauls
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=Renegades
whom=Gauls
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=Tools
whom=Gauls
@ENDIF
;**** END WAR *******************************

;**** DEAD HERO *******************************
@IF
UNITKILLED
unit=Iorus
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The brave Iorus has been killed in battle! Who will now lead the cavalry charges?
ENDTEXT
PlayWaveFile
DEATH.wav
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Hortalus
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The brave Hortalus has fallen! Who will now protect the convoy?
ENDTEXT
PlayWaveFile
DEATH.wav
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Civilian
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
You feel like you're betraying people's trust in you as the civilians are slaughtered... 
ENDTEXT
@ENDIF
;**** END DEAD HERO *******************************



;**** MESSAGES *******************************
;**** Interrogation *******************************
@IF
UNITKILLED
unit=Help1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The river definitely seems to be the safest and fastest way of fleeing the harassing Scythians! Your Pioneers should be able to make good use of the conveniently available trees.
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help2
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The river is becoming dangerously fast: it might be safer to unload the rafts for the length of the rapids, as some of them might sink and drown their passengers...
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help3
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
This looks like a good spot to land and continue to the west!
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help4
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The path is blocked by rocks, but the Pioneers should be able to open a way through!
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help5
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
This looks like a good place to establish a defense post to cover your retreat. Pioneers should be able to build a ballista with the nearby trees!
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help6
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The rocks to the west look a little bit loose! Once all your units have crossed, your Pioneers should be able to make them crash down and seal the gorge, thus ending the pursuit!
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help7
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
After your long march, the plains of Gaul are at last before you! One last obstacle stands before you can settle in peace: a rebellious Gallic tribe has rejected Roman rule and blocks your way! Take their city to end the rebellion!
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help8
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Your scouts have reached the city! The walls seem too high to be attacked without serious preparation. Your Pioneers should be able to build a siege tower by using some of the nearby trees!
ENDTEXT
JUSTONCE
@ENDIF
;**** END Interrogation *******************************


;**** INTRO *******************************
@IF
TURN
turn=0
@THEN
TEXT
Your men have been disembarked on the north coast of the Black Sea. Gaul lies far to the west.
Waste no time in the area! The trip home will be long and dangerous through the territories of extremely hostile tribes who resent your intrusion!
ENDTEXT
GIVETECHNOLOGY
technology=0
receiver=Tools
@ENDIF
;**** END INTRO *******************************

;**** TIME TRIGGERED *******************************
@IF
TURN
turn=1
@THEN
TEXT
Your scouts have spotted camps full of aggressive Scythians! Razing these camps might slow down the barbarians attacks!
ENDTEXT
GIVETECHNOLOGY
technology=12
receiver=Tools
@ENDIF

@IF
TURN
turn=3
@THEN
TEXT
Summer on the sunburned plains is incredibly hot! Men and beasts are growing thirsty! A waterhole would give new energy and bring back strength to the ones suffering the most from the heat!
ENDTEXT
GIVETECHNOLOGY
technology=13
receiver=Tools
@ENDIF

@IF
TURN
turn=4
@THEN
TEXT
Barbarian riders are seen more and more often! Move quickly to reduce casualties!
Use your cavalry to explore and counterattack, and your infantry to protect the civilians!
Move west as fast as possible!
ENDTEXT
GIVETECHNOLOGY
technology=16
receiver=Tools
@ENDIF

@IF
TURN
turn=5
@THEN
TEXT
The Scythians are harassing your rearguard! You must find a way to leave them behind
ENDTEXT
@ENDIF

@IF
TURN
turn=7
@THEN
TEXT
Scouts have found a large river to the northwest of your starting point! 
It could provide a solution to your problem, as the Scythians would probably not follow you on the river... 
ENDTEXT
@ENDIF

@IF
TURN
turn=9
@THEN
TEXT
The sun is burning high in the sky! Water is scarce.
Morale is suffering.   Hurry!
ENDTEXT
@ENDIF

@IF
TURN
turn=12
@THEN
TEXT
The Scythians attacks make the men more and more nervous! It's difficult to stop panic from spreading among the civilians! You have to bring them quickly to the river and hope that the water will stop the barbarians!
ENDTEXT
@ENDIF
;**** END TIME TRIGGERED *******************************

;**** RIVER *******************************
@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The river flows southwest, in the general direction of your home! Floating downriver would be much faster than a slow march through the thick and unknown forest on the opposite bank!
ENDTEXT
Delay
delay=1
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Beware!   There is a big risk of drowning in rough waters!
ENDTEXT
Delay
delay=3
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The rapids are becoming larger as you float down the river! It would be less dangerous to land and follow the river bank until you reach calmer water...
ENDTEXT
GIVETECHNOLOGY
technology=17
receiver=Tools
Delay
delay=5
JUSTONCE
@ENDIF

@IF
TURN
turn=20
@THEN
GIVETECHNOLOGY
technology=17
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The forests seem to be full of barbarians! The ground on the north shore seems more open and may offer an easier way around the rapids.
ENDTEXT
GIVETECHNOLOGY
technology=20
receiver=Tools
Delay
delay=7
JUSTONCE
@ENDIF

@IF
TURN
turn=22
@THEN
GIVETECHNOLOGY
technology=20
receiver=Tools
JUSTONCE
@ENDIF
;**** END RIVER *******************************

;**** ROMANS *******************************
@IF
UNITKILLED
unit=Disg Roman
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The woods are full of wild beasts! It would be safer to proceed rapidly on open ground!
ENDTEXT
Delay
delay=2
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Disg Roman
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Fighting against the barbarians was arduous for all your men, but it was at least expected! Having now to face roman soldiers is distressing and the morale is sinking rapidly! You must quickly find a solution or risk desertions...
ENDTEXT
Delay
delay=4
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Disg Roman
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The civilians are wary of the attacks of the bears and wolves! Many stragglers have been eaten by the hungry animals and nobody now dares to move away from the main groups! 
ENDTEXT
Delay
delay=13
JUSTONCE
@ENDIF
;**** END ROMANS *******************************

;**** GERMANS *******************************
@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
TEXT
The scouts have reported that the forests open to a vast plain to the northwest of the roman fort! The civilians cheer as they find comfort in the news!
ENDTEXT
Delay
delay=3
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
TEXT
Your scouts have spotted some camps full of aggressive Germans! Razing these camps might slow down the barbarians attacks!
ENDTEXT
GIVETECHNOLOGY
technology=22
receiver=Tools
Delay
delay=6
JUSTONCE
@ENDIF

; @IF
; RECEIVEDTECHNOLOGY
; technology=4
; receiver=Tools
; @THEN
; TEXT
; Summer on the sunburned plains is incredibly hot! Men and beasts are growing thirsty! A waterhole would give new energy and ; bring back strength to the ones suffering the most from the heat!
; ENDTEXT
; Delay
; delay=7
; JUSTONCE
; @ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
TEXT
The scouts have spotted a Burg, a wooden fortress barring the way to the west! German raiders seem to use this place as a safe haven from where they can harass your men!
The men insist that a lesson be taught to the barbarians!
ENDTEXT
Delay
delay=9
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=German Burg
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The scouts report that the mountains behind the ruins of the burg are impassable unless
Pioneers can open a way. The alternative is to risk getting lost in the woods while looking for a way around the obstacle... 
ENDTEXT
Delay
delay=1
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=22
receiver=Tools
@THEN
TEXT
The Germans are on your heels and the attacks grow more and more vicious! Maybe there is a way to use the forbidding landscape to delay their onslaught and cover the civilians retreat...
ENDTEXT
Delay
delay=4
JUSTONCE
@ENDIF


@IF
RECEIVEDTECHNOLOGY
technology=22
receiver=Tools
@THEN
TEXT
The valley narrows to a cleft as it enters the mountains. There might be a way to block this passage!
ENDTEXT
Delay
delay=8
JUSTONCE
@ENDIF
;**** END GERMANS *******************************

;**** RENEGADES *******************************
@IF
UNITKILLED
unit=Help7
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Scouts report that they have spotted a city to the west! You order them to covertly investigate the city and its surroundings! 
ENDTEXT
Delay
delay=2
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help7
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Your scouts have been spotted by the city residents who attack them at once! Few scouts survive to return and report...
ENDTEXT
Delay
delay=4
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Help8
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Your scouts have investigated the city! The walls seem too high to be attacked without siege equipment. Your Pioneers should be able to build a siege tower by using some of the nearby trees!
ENDTEXT
JUSTONCE
@ENDIF
;**** END RENEGADES *******************************
;**** END MESSAGES *******************************




;************ EPISODE 1 ***********************
;*************************************************

;************* trees and rafts **********************
@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
CREATEUNIT
unit=Raft
owner=Gauls
veteran=no
homecity=NONE
locations
241,15
endlocations
@ENDIF

@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Pioneers have built a raft! 
However the raft is not sturdy enough to safely spend a long time in the middle of the river. Stay close to the river bank!
ENDTEXT
GIVETECHNOLOGY
technology=1
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Your scouts report that the forests on both banks of the river are teeming with barbarians!
It would be safer to use the rafts as long as possible.
ENDTEXT
Delay
delay=5
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Tree1
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Your scouts report they have seen a formidable barbarian burg overlooking the river!
If you want to keep on using your rafts, you have to capture the river fortress! 
ENDTEXT
GIVETECHNOLOGY
technology=2
receiver=Tools
Delay
delay=10
JUSTONCE
@ENDIF

@IF
TURN
turn=25
@THEN
GIVETECHNOLOGY
technology=2
receiver=Tools
JUSTONCE
@ENDIF
;**************** END trees and rafts *******************

;************ SCYTHIANS ***********************
;************ Sc camps ***********************
@IF
TURNINTERVAL
interval=2
@AND
RECEIVEDTECHNOLOGY
technology=12
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
273,21
endlocations
@ENDIF

@IF
UnitKilled
unit=Sc. Camp1
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=12
JUSTONCE
@ENDIF

@IF
TURNINTERVAL
interval=2
@AND
RECEIVEDTECHNOLOGY
technology=13
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav2
owner=Scythians
veteran=yes
homecity=none
locations
256,30
endlocations
@ENDIF

@IF
UnitKilled
unit=Sc. Camp3
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=13
JUSTONCE
@ENDIF

@IF
TURNINTERVAL
interval=2
@AND
RECEIVEDTECHNOLOGY
technology=16
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
260,10
endlocations
@ENDIF

@IF
UnitKilled
unit=Sc. Camp2
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=16
JUSTONCE
@ENDIF
;************ END sc camps ***********************

;************ NE corner ***********************
@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
287,11
289,11
291,11
287,13
289,13
291,13
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav2
owner=Scythians
veteran=yes
homecity=none
locations
289,11
291,11
287,11
289,13
291,13
287,13
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Bow
owner=Scythians
veteran=yes
homecity=none
locations
291,11
287,11
289,11
291,13
287,13
289,13
endlocations
MOVEUNIT
unit=AnyUnit
owner=Scythians
maprect
281,3,295,3,295,23,281,23
moveto
247,47
numbertomove=ALL
@ENDIF
;************ END NE corner ***********************

;************ NW corner ***********************
@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
249,3
251,3
253,3
249,5
251,5
253,5
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav2
owner=Scythians
veteran=yes
homecity=none
locations
251,3
253,3
249,3
251,5
253,5
249,5
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Bow
owner=Scythians
veteran=yes
homecity=none
locations
253,3
249,3
251,3
253,5
249,5
251,5
endlocations
MOVEUNIT
unit=AnyUnit
owner=Scythians
maprect
242,0,258,0,258,10,242,10
moveto
268,42
numbertomove=ALL
@ENDIF
;************ END NW corner ***********************

;************ SE corner ***********************
@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
294, 38
294, 40
294, 42
296, 38
296, 40
296, 42
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav2
owner=Scythians
veteran=yes
homecity=none
locations
294, 40
294, 42
294, 38
296, 40
296, 42
296, 38
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Bow
owner=Scythians
veteran=yes
homecity=none
locations
294, 42
294, 38
294, 40
296, 42
296, 38
296, 40
endlocations
MOVEUNIT
unit=AnyUnit
owner=Scythians
maprect
286,24,294,24,294,46,286,46
moveto
245,3
numbertomove=ALL
@ENDIF
;************ END SE corner ***********************

;************ SW corner ***********************
@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
236, 36
236, 38
236, 40
238, 36
238, 38
238, 40
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav2
owner=Scythians
veteran=yes
homecity=none
locations
236, 38
236, 40
236, 36
238, 38
238, 40
238, 36
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=0
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Bow
owner=Scythians
veteran=yes
homecity=none
locations
236, 40
236, 36
236, 38
238, 40
238, 36
238, 38
endlocations
MOVEUNIT
unit=AnyUnit
owner=Scythians
maprect
232,32,246,32,246,48,232,48
moveto
291,5
numbertomove=ALL
@ENDIF
;************ END SW corner ***********************

;************ ATTACK EMBARKMENT ***********************
@IF
RECEIVEDTECHNOLOGY
technology=1
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav1
owner=Scythians
veteran=yes
homecity=none
locations
264,8
266,8
268,8
264,6
266,6
268,6
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=1
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Cav2
owner=Scythians
veteran=yes
homecity=none
locations
266,8
268,8
264,8
266,6
268,6
264,6
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=1
receiver=Tools
@THEN
CREATEUNIT
unit=Scythian Bow
owner=Scythians
veteran=yes
homecity=none
locations
268,8
264,8
266,8
268,6
264,6
266,6
endlocations
MOVEUNIT
unit=AnyUnit
owner=Scythians
maprect
248,2,270,2,270,26,248,26
moveto
242,16
numbertomove=ALL
@ENDIF
;************ END OF ATTACK EMBARKMENT ***********************
;************ END OF SCYTHIANS ***********************

;**** REMOVE TRIGGER 1, 2, 9, 10 AND 11 *******************************
@IF
TURN
turn=30 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=0
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
231,1,295,1,295,45,231,45
JUSTONCE
@ENDIF

@IF
TURN
turn=30 ; a ajuster!!!!
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
231,1,295,1,295,45,231,45
JUSTONCE
@ENDIF

@IF
UnitKilled
unit=River Burg
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=0
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
231,1,295,1,295,45,231,45
JUSTONCE
@ENDIF

@IF
UnitKilled
unit=River Burg
attacker=anybody
defender=anybody
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
231,1,295,1,295,45,231,45
JUSTONCE
@ENDIF

@IF
TURN
turn=30 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=1
@ENDIF

@IF
UnitKilled
unit=River Burg
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=1
@ENDIF


@IF
TURN
turn=30 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=12
@ENDIF

@IF
UnitKilled
unit=River Burg
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=12
@ENDIF

@IF
TURN
turn=30 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=13
@ENDIF

@IF
UnitKilled
unit=River Burg
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=13
@ENDIF

@IF
TURN
turn=30 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=16
@ENDIF

@IF
UnitKilled
unit=River Burg
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=16
@ENDIF
;**** END REMOVE TRIGGER 1, 2, 9, 10 AND 11 *******************************
;************ END OF EPISODE 1 ***********************



;************ EPISODE 2 ***********************
;*************************************************

;************ Dacian camps ***********************
@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=17
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
224,6
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=4
@AND
RECEIVEDTECHNOLOGY
technology=17
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
224,6
endlocations
@ENDIF

@IF
UnitKilled
unit=D. Camp1
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=17
JUSTONCE
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=20
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
207,11
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=4
@AND
RECEIVEDTECHNOLOGY
technology=20
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
207,11
endlocations
@ENDIF

@IF
UnitKilled
unit=D. Camp2
attacker=anybody
defender=anybody
@THEN
TAKETECHNOLOGY
whom=Tools
technology=20
JUSTONCE
@ENDIF
;************ END Dacian camps ***********************

;************ N bank ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
235,9
236,10
233,7
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
233,7
235,9
236,10
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
232,6,238,6,238,14,232,14
moveto
231,19
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
228,6
227,5
229,5
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
227,5
228,6
229,5
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
225,3,229,3,229,9,225,9
moveto
226,16
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
222,4
221,3
223,3
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
221,3
222,4
223,3
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
221,1,227,1,227,9,221,9
moveto
218,12
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
209,13
208,12
210,12
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
208,12
209,13
210,12
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
209,9,211,9,211,15,209,15
moveto
225,13
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
199,13
198,12
200,12
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
198,12
199,13
200,12
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
197,9,201,9,201,15,197,15
moveto
209,19
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
190,8
189,7
191,7
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
189,7
190,8
191,7
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
189,7,191,7,191,9,189,9
moveto
192,18
numbertomove=ALL
@ENDIF
;************ END N bank ***********************

;************ S bank ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
194,38
193,37
195,37
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
193,37
194,38
195,37
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
204,32
203,31
205,31
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
203,31
204,32
205,31
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
202,28,206,28,206,34,202,34
moveto
207,27
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
212,34
211,35
213,35
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
211,35
212,34
213,35
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
210,32,214,32,214,38,210,38
moveto
210,28
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
219,27
218,28
220,28
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
218,28
219,27
220,28
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
217,25,221,25,221,29,217,29
moveto
218,22
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 1
owner=Germans
veteran=yes
homecity=none
locations
219,39
218,40
220,40
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=2
receiver=Tools
@THEN
CREATEUNIT
unit=Dacian 2
owner=Germans
veteran=yes
homecity=none
locations
218,40
219,39
220,40
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
218,38,220,38,220,40,218,40
moveto
226,34
numbertomove=ALL
@ENDIF
;************ END S bank ***********************

;************ RIVER BURG ***********************
@IF
UNITKILLED
unit=River Burg
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Burg burned to the ground! The river is now navigable past the ruins. 
ENDTEXT
CREATEUNIT
unit=Disg Roman
owner=Romans
veteran=yes
homecity=none
locations
181,27
183,25
endlocations
MOVEUNIT
unit=AnyUnit
owner=Romans
maprect
181,27,181,27,181,27,181,27
moveto
183,25
numbertomove=ALL
CHANGETERRAIN
terraintype=10
maprect
198,24,198,24,198,24,198,24
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=River Burg
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Scouts report that river is not navigable after it turns to the north.
Luckily, there is a good landing spot and the ground seems open enough towards the west.
ENDTEXT
Delay
delay=1
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=River Burg
attacker=ANYBODY
defender=ANYBODY
@THEN
GIVETECHNOLOGY
technology=3
receiver=Tools
Delay
delay=3
JUSTONCE
@ENDIF
;***************** END OF RIVER BURG *********************************************

;************ REMOVE TRIGGERS ***********************
@IF
TURN
turn=50 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=2
@ENDIF

@IF
TURN
turn=50 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=17
@ENDIF

@IF
TURN
turn=50 ; a ajuster!!!!
@THEN
TAKETECHNOLOGY
whom=Tools
technology=20
@ENDIF

@IF
TURN
turn=42
@THEN
TEXT
Heavy rains in the hills make the river rise and become very rough! It's urgent to find a landing spot before you drown...
ENDTEXT
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
TEXT
The river gets really wild and drowns everything still in it!
ENDTEXT
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF

@IF
TURN
turn=45
@THEN
CHANGETERRAIN
terraintype=10
ExceptionMask=0b01111111111
maprect
182,0,244,0,244,36,182,36
JUSTONCE
@ENDIF
;************ END OF REMOVE TRIGGERS ***********************
;************ END OF EPISODE 2 ***********************


;************ EPISODE 3 ***********************
;*************************************************

;**** TREASURE *******************************
@IF
UNITKILLED
unit=Treasure
attacker=Romans
defender=Gauls
@THEN
TEXT
The corrupt Roman General seizes the treasure wagon and orders his troops to withdraw and allow you to proceed in peace!
ENDTEXT
DESTROYACIVILIZATION
whom=Romans
JUSTONCE
@ENDIF
;**** END OF TREASURE *******************************

;************ ROMANS: NEAR FORTRESS ***********************
@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Legion
owner=Romans
veteran=yes
homecity=none
locations
173,47
175,45
175,47
174,48
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=3
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Roman Cav
owner=Romans
veteran=yes
homecity=none
locations
175,47
173,47
175,45
174,48
endlocations
MOVEUNIT
unit=AnyUnit
owner=Romans
maprect
171,45,179,45,179,49,171,49
moveto
168,44
numbertomove=ALL
@ENDIF


@IF
TURNINTERVAL
interval=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Legion
owner=Romans
veteran=yes
homecity=none
locations
147,31
146,30
148,30
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Roman Cav
owner=Romans
veteran=yes
homecity=none
locations
146,30
147,31
148,30
endlocations
MOVEUNIT
unit=AnyUnit
owner=Romans
maprect
145,29,151,29,151,35,145,35
moveto
161,43
numbertomove=ALL
@ENDIF
;************ END OF ROMANS ***********************

;************ ANIMALS ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Bear
owner=Tools
veteran=yes
homecity=none
locations
165,39
164,38
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Bear
owner=Tools
veteran=yes
homecity=none
locations
162,22
161,21
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Bear
owner=Tools
veteran=yes
homecity=none
locations
151,9
150,8
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Wolf
owner=Tools
veteran=yes
homecity=none
locations
157,33
156,32
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Wolf
owner=Tools
veteran=yes
homecity=none
locations
154,22
153,21
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Wolf
owner=Tools
veteran=yes
homecity=none
locations
167,9
166,8
endlocations
@ENDIF
;************ END OF ANIMALS ***********************

;************ DISGUISED ROMAN ***********************
@IF
TURN
turn=-1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Romans
maprect
181,27,181,27,181,27,181,27
moveto
183,25
numbertomove=ALL
@ENDIF

@IF
TURN
turn=-1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Romans
maprect
183,25,183,25,183,25,183,25
moveto
181,27
numbertomove=ALL
@ENDIF

@IF
UNITKILLED
unit=Disg Roman
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Hidden under barbarian skins was nothing less than... a roman legionary!
This can only mean that a roman general has heard about the treasure you carry!
Delivering the gold to the roman fort is the only way to avoid a fight with the local legions...
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Disg Roman
attacker=ANYBODY
defender=ANYBODY
@THEN
TAKETECHNOLOGY
whom=Tools
technology=2
Delay
delay=10
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Legion
owner=Romans
veteran=yes
homecity=none
locations
148,36
149,37
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Legion
owner=Romans
veteran=yes
homecity=none
locations
149,37
148,36
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Roman Cav
owner=Romans
veteran=yes
homecity=none
locations
147,33
148,34
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=3
receiver=Tools
@THEN
CREATEUNIT
unit=Roman Cav
owner=Romans
veteran=yes
homecity=none
locations
148,34
147,33
endlocations
MOVEUNIT
unit=AnyUnit
owner=Romans
maprect
147,33,149,33,149,37,147,37
moveto
165,45
numbertomove=ALL
JUSTONCE
@ENDIF
;************ END OF DISGUISED ROMAN ***********************

;************ REMOVE TRIGGER4 ***********************
@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
TAKETECHNOLOGY
whom=Tools
technology=3
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
184,0,230,0,230,44,184,44
Delay
delay=10
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
184,0,230,0,230,44,184,44
Delay
delay=10
JUSTONCE
@ENDIF
;************ END OF REMOVE TRIGGER4 ***********************
;************ END OF EPISODE 3 ***********************


;************ EPISODE 4 ***********************
;*************************************************

;******************  START  **************************
@IF
UNITKILLED
unit=Treasure
attacker=Romans
defender=Gauls
@THEN
Delay
delay=4
GIVETECHNOLOGY
technology=4
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Legion
attacker=Gauls
defender=Romans
@THEN
Delay
delay=10
GIVETECHNOLOGY
technology=4
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Roman Cav
attacker=Gauls
defender=Romans
@THEN
Delay
delay=10
GIVETECHNOLOGY
technology=4
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=River Burg
attacker=ANYBODY
defender=ANYBODY
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
145,29
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
145,29,145,29,145,29,145,29
moveto
146,32
numbertomove=ALL
Delay
delay=5
JUSTONCE
@ENDIF

@IF
TURN
turn=-1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
145,29,145,29,145,29,145,29
moveto
146,32
numbertomove=ALL
@ENDIF

@IF
TURN
turn=-1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
146,32,146,32,146,32,146,32
moveto
145,29
numbertomove=ALL
@ENDIF

@IF
UNITKILLED
unit=German1
attacker=Gauls
defender=Germans
@THEN
GIVETECHNOLOGY
technology=4
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=German2
attacker=Gauls
defender=Germans
@THEN
GIVETECHNOLOGY
technology=4
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=German3
attacker=Gauls
defender=Germans
@THEN
GIVETECHNOLOGY
technology=4
receiver=Tools
JUSTONCE
@ENDIF
;******************  END OF START  **************************

;************ NW ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
112,4
110,4
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
113,5
111,5
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
107,19
107,21
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
106,0,146,0,146,48,106,48
moveto
107,29
numbertomove=ALL
@ENDIF
;************ END NW ***********************

;************ N ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
127,5
125,5
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
125,3,129,3,129,7,125,7
moveto
126,34
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
128,6
126,6
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
125,3,129,3,129,7,125,7
moveto
126,34
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
127,3
125,3
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
125,3,129,3,129,7,125,7
moveto
126,34
numbertomove=ALL
@ENDIF
;************ END N ***********************

;************ NE ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
152,12
150,12
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
150,10,154,10,154,14,150,14
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
153,13
151,13
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
150,10,154,10,154,14,150,14
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
152,10
150,10
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
150,10,154,10,154,14,150,14
moveto
56,32
numbertomove=ALL
@ENDIF
;************ END NE ***********************

;************ SE ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
144,46
142,46
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
142,46,146,46,146,48,142,48
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
145,47
143,47
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
142,46,146,46,146,48,142,48
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
144,46
142,46
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
142,46,146,46,146,48,142,48
moveto
56,32
numbertomove=ALL
@ENDIF
;************ END SE ***********************

;************ S ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
126,48
124,48
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
124,46,128,46,128,48,124,48
moveto
116,20
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
127,47
125,47
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
124,46,128,46,128,48,124,48
moveto
116,20
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
126,48
124,48
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
124,46,128,46,128,48,124,48
moveto
116,20
numbertomove=ALL
@ENDIF
;************ END S ***********************

;************ SW ***********************
@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
112,48
110,48
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
110,46,114,46,114,48,110,48
moveto
126,22
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
113,47
111,47
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
110,46,114,46,114,48,110,48
moveto
126,22
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=4
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
114,48
112,48
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
110,46,114,46,114,48,110,48
moveto
126,22
numbertomove=ALL
@ENDIF
;************ END SW ***********************

;************* GERMAN BURG **********************
@IF
RANDOMTURN
denominator=3
@AND
RECEIVEDTECHNOLOGY
technology=22
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
98,30
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@AND
RECEIVEDTECHNOLOGY
technology=22
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
98,30
endlocations
@ENDIF

@IF
UNITKILLED
unit=German Burg
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Burg is burning! The Germans will no longer be able to harass you from the safety of its walls!
ENDTEXT
TAKETECHNOLOGY
whom=Tools
technology=22
JUSTONCE
@ENDIF
;************* end of GERMAN BURG **********************


;************* passage **********************
@IF
UNITKILLED
unit=Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
Using steel tools, fire and vinegar, the Pioneers manage to split the stone and create a passage for your men!
ENDTEXT
GIVETECHNOLOGY
technology=8
receiver=Tools
JUSTONCE
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=8
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
97,25
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
97,25,97,25,97,25,97,25
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=8
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
100,24
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
100,24,100,24,100,24,100,24
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=8
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
103,25
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
103,25,103,25,103,25,103,25
moveto
56,32
numbertomove=ALL
@ENDIF


@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=8
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
97,35
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
97,35,97,35,97,35,97,35
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=8
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
100,34
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
100,34,100,34,100,34,100,34
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=8
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
103,33
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
103,33,103,33,103,33,103,33
moveto
56,32
numbertomove=ALL
@ENDIF

@IF
UNITKILLED
unit=Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The forests and hills are now swarming with Germans rushing towards your wagons! Run!!
ENDTEXT
GIVETECHNOLOGY
technology=23
receiver=Tools
Delay
delay=3
JUSTONCE
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=23
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
92,26
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
92,26,92,26,92,26,92,26
moveto
51,31
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=23
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
92,26
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
92,26,92,26,92,26,92,26
moveto
51,31
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=23
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
92,26
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
92,26,92,26,92,26,92,26
moveto
51,31
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=23
receiver=Tools
@THEN
CREATEUNIT
unit=German1
owner=Germans
veteran=yes
homecity=none
locations
93,35
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
93,35,93,35,93,35,93,35
moveto
51,31
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=23
receiver=Tools
@THEN
CREATEUNIT
unit=German2
owner=Germans
veteran=yes
homecity=none
locations
93,35
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
93,35,93,35,93,35,93,35
moveto
51,31
numbertomove=ALL
@ENDIF

@IF
RANDOMTURN
denominator=2
@AND
RECEIVEDTECHNOLOGY
technology=23
receiver=Tools
@THEN
CREATEUNIT
unit=German3
owner=Germans
veteran=yes
homecity=none
locations
93,35
endlocations
MOVEUNIT
unit=AnyUnit
owner=Germans
maprect
93,35,93,35,93,35,93,35
moveto
51,31
numbertomove=ALL
@ENDIF
;************* end of passage **********************

;************* trees and ballista **********************
@IF
UNITKILLED
unit=Tree2
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Pioneers are building a Ballista to hold the passage against the barbarians!
ENDTEXT
CHANGETERRAIN
terraintype=1
maprect
72,30,72,30,72,30,72,30
GIVETECHNOLOGY
technology=6 
receiver=Tools
JUSTONCE 
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=Tools
@THEN
CREATEUNIT
unit=Ballista
owner=Gauls
veteran=no
homecity=NONE
locations
72,30
endlocations
JUSTONCE 
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6 
receiver=Tools
@THEN
CREATEUNIT
unit=Bolt
owner=Gauls
veteran=no
homecity=NONE
locations
72,30
endlocations
@ENDIF

@IF
UNITKILLED
unit=Tree2
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=25
CHANGETERRAIN
terraintype=1
maprect
72,30,72,30,72,30,72,30
TAKETECHNOLOGY
whom=Tools
technology=6
JUSTONCE 
@ENDIF

@IF
UNITKILLED
unit=Tree2
attacker=ANYBODY
defender=ANYBODY
@THEN
TAKETECHNOLOGY
whom=Tools
technology=23
Delay
delay=25
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
UNITKILLED
unit=Tree2
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=25
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
UNITKILLED
unit=Tree2
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=25
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
UNITKILLED
unit=Tree2
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=25
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
UNITKILLED
unit=Ballista
attacker=ANYBODY
defender=Gauls
@THEN
TAKETECHNOLOGY
whom=Tools
technology=6
JUSTONCE 
@ENDIF

@IF
UNITKILLED
unit=Ballista
attacker=ANYBODY
defender=Gauls
@THEN
TAKETECHNOLOGY
whom=Tools
technology=23
Delay
delay=5
JUSTONCE 
@ENDIF
;**************** END ballista *******************

;************* landslide **********************
@IF
UNITKILLED
unit=Loose Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
The Pioneers make the loose rocks crash down, sealing the narrow passage! The Germans can't get at you any longer!
ENDTEXT
CHANGETERRAIN
terraintype=1
maprect
55,31,55,31,55,31,55,31
@ENDIF

@IF
UNITKILLED
unit=Loose Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
CREATEUNIT
unit=Rocks
owner=Nature
veteran=no
homecity=NONE
locations
55,31
endlocations
@ENDIF

@IF
UNITKILLED
unit=Loose Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=10
TAKETECHNOLOGY
whom=Tools
technology=4
@ENDIF

@IF
UNITKILLED
unit=Loose Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=15
TAKETECHNOLOGY
whom=Tools
technology=8
@ENDIF
;********* END landslide *******************
;************ END OF EPISODE 4 ***********************


;************ EPISODE 5 ***********************
;********* Start *******************
@IF
UNITKILLED
unit=Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=14
GIVETECHNOLOGY
technology=10
receiver=Tools
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=14
GIVETECHNOLOGY
technology=11
receiver=Renegades
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Loose Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=2
GIVETECHNOLOGY
technology=10
receiver=Tools
@ENDIF

@IF
UNITKILLED
unit=Loose Rocks
attacker=ANYBODY
defender=ANYBODY
@THEN
Delay
delay=2
GIVETECHNOLOGY
technology=11
receiver=Renegades
@ENDIF
;********* End of Start *******************

;********* Siege Tower *******************
@IF
UNITKILLED
unit=Tree3
attacker=ANYBODY
defender=ANYBODY
@THEN
TEXT
A Siege Tower has been constructed.
ENDTEXT
CREATEUNIT
unit=Siege Tower
owner=Gauls
veteran=yes
homecity=NONE
locations
17,35
18,36
17,37
endlocations
JUSTONCE 
@ENDIF
;********* End of Siege Tower *******************

;********* Renegades *******************
@IF
RECEIVEDTECHNOLOGY
technology=10
receiver=Tools
@THEN
CREATEUNIT
unit=Renegade1
owner=Renegades
Count=4
veteran=yes
homecity=none
locations
15,31
endlocations
JUSTONCE 
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=10
receiver=Tools
@THEN
CREATEUNIT
unit=Ren Cav
owner=Renegades
Count=4
veteran=yes
homecity=none
locations
15,31
endlocations
JUSTONCE 
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=10
receiver=Tools
@THEN
CREATEUNIT
unit=Ren Cav
owner=Renegades
veteran=yes
homecity=none
locations
15,31
endlocations
JUSTONCE 
@ENDIF

@IF
RANDOMTURN
denominator=4
@AND
RECEIVEDTECHNOLOGY
technology=10
receiver=Tools
@THEN
CREATEUNIT
unit=Renegade1
owner=Renegades
veteran=yes
homecity=none
locations
15,31
endlocations
JUSTONCE 
@ENDIF
;********* End of Renegades *******************

;********* City *******************
@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
CHANGETERRAIN
terraintype=9
ExceptionMask=0b10010100000
maprect
56,0,230,0,230,48,56,48
JUSTONCE 
@ENDIF

@IF
CITYTAKEN
city=Argentoratum
attacker=Gauls
defender=Renegades
@THEN
TEXT
^ The renegades surrender and you march into the city! 
^ Many are dead, but you have at last reached your home!
^ It's now time to determine your score! 
^ Count your surviving units which have reached the plains of Gaul, 
^ with the following value for each of them:
^ Iorus and Hortalus: 3 percent each
^ Cavalry and Infantry: 2 percent each
^ Pioneer: 2 percent each
^ Treasure: 2 percent
^ Civilians: 7 percent each
ENDTEXT
DESTROYACIVILIZATION
whom=Renegades
ENDGAME
endscreens=yes
JUSTONCE
@ENDIF
;********* End of City *******************
;************ END OF EPISODE 5 ***********************


@ENDEVENTS
